import Mock from 'mockjs'
import itemList from './itemList/itemList'
import {getMutidata} from './home/mutidata'

//rurl是正则表达式
Mock.mock(/\/itemList\/getItemList/,'get',itemList.getItemList);
Mock.mock('http://localhost:8008/home/mutidata','get',getMutidata());
// Mock.mock(RegExp('http://localhost:8008/home/data'+".*"),get,getMockHomeData());

//设置模拟请求延时
Mock.setup({
  timeout:1000})
